package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

@FieldTypeAnnotation(tableName = "t_u_user_online_time")
public class UserOnlineTime extends DataObject {
    @FieldTypeAnnotation(desc = "活动id",select =  true,update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", select = true, update = true)
    private long userId;


    @FieldTypeAnnotation(desc = "本日在线时间,单位为秒(s)")
    private long onlineTime;

    @FieldTypeAnnotation(desc = "最后更新时间,单位为秒(s)")
    private long lastUpdateTime;

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public long getOnlineTime() {
        return onlineTime;
    }
    public void setOnlineTime(long onlineTime) {
        if (this.onlineTime != onlineTime) {
            this.onlineTime = onlineTime;
            setOp(DataStatus.Update);
        }
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }
    public void setLastUpdateTime(long lastUpdateTime) {
        if (this.lastUpdateTime != lastUpdateTime) {
            this.lastUpdateTime = lastUpdateTime;
            setOp(DataStatus.Update);
        }
    }


}
